#pragma once

#include "ThemeHelperST.h"

// CScriptHeaderCtrl

class CScriptHeaderCtrl : public CHeaderCtrl
{
	DECLARE_DYNAMIC(CScriptHeaderCtrl)

public:
	CScriptHeaderCtrl();
	virtual ~CScriptHeaderCtrl();
	void SetSortedColumn(int nCol);
	void SetSortAscending(BOOL bAscending);
	BOOL IsSortAscending() const;
	int GetSortedColumn() const;
	void UpdateSortArrow();

public:
	virtual void DrawItem(LPDRAWITEMSTRUCT lpDrawItemStruct);

protected:
	DECLARE_MESSAGE_MAP()

	CThemeHelperST		m_Theme;
	void ScriptTextOut(HDC hDC, CString data , CRect* drawRect, int justification);

private:
	int m_iSortColumn;
	BOOL m_bSortAscending;

};


